
<?php

include 'source/config.php';
include 'source/soap.fnc.php';

include 'source/mysql.cls.php';
$db = new db_mysql();
$db->connect($dbhost, $dbuser, $dbpw, $dbname);
$fee = $db->do_one('checkMobile', 'startCost,minConsumption,lowestFee', 'uuid="'.$uuid.'" and mobile="'.$phone_code.'"');
//获取号码信息

?>
<!DOCTYPE html>
<html>
<head>
<title>浙江联通淘号吧-靓号购买确认</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1, user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link href="css/unicom.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- content 320 -->
<div class="uni_content">
	<!-- header 100% -->
	<div class="header">
		<img src="images/banner_02.jpg" alt="logo" class="logo_style">
		<a href="javascript:history.back();"><div class="header_divA"></div></a>
	</div>

	<!-- lovers logo -->
	<div class="content1">
		<div class="hotArea">
			<img src="images/icons_76.png" alt="情侣" class="hotImg"><span class="btn_f1 lovers_f1">亲，你们真是天生一对哟！</span>
		</div>
	</div>
	<!-- content -->
	<div class="content2" id="list_ul_li">
		<ul class="button_yuan">
			<li class="ul_li">
				<div class="button_marginx">
					<div class="fontcol_left">15605782128</div>
					<div class="fontcol_right">15605782129</div>
					<div class="fontcol_center"><img src="images/icons_07.png" alt="情侣" class="fontcol_centerUp"><p class="lovers_p2 lovers_f1">丽水</p></div>
				</div>
			</li>
			<li class="ul_li border_null">
				<div class="button_marginx">
					<div class="fontcol_left">&nbsp;</div>
					<div class="pic_right">价格：<span class="font_color">￥<span class="pic_size">100</span></span></div>
				</div>
			</li>
		</ul>
		<p class="packdFont1">请选择套餐</p>
	</div>

	<!-- content -->
	<div class="content">
		<!-- 热销靓号 -->
		<div class="hotArea">
			<img src="images/icons_05.png" alt="热销" class="hotImg"><span class="btn_f1 hot_f1">亲，您选择号码在这呢！</span>
		</div>
		<div class="button_yuan button_margin content_div">
			<div class="fl_l">
				<span class="fontcol"><?php echo $phone_code;?></span>
			</div>
			<div class="fl_r">
				价格：<span class="font_color">￥<span class="pic_size"><?php echo $fee['startCost'];?></span></span>
			</div>	
		</div>
		<p class="adCol1">月保底消费<?php echo $fee['minConsumption'];?>元，<?php echo $fee['startCost'];?>元一次性返还。</p>
		<div style="text-align:center;display:none;">
			<div onClick="choose_coupon();" class="button_yuan button_margin button_3"><span style="color:#FFFFFF;" id="coupon">使用代金券</span></div>
			<div class="font_style3">满200元才能使用 满200减20;满300减30;满500减50;满3000减200</div>
		</div>
		<p class="font_3">请选择套餐</p>
		<ul class="ul_page button_yuan" style='display:none;'>
			<div class="border_right adCol2">
				<li id="cosli1" class="ul_li2" onClick="show_packages(1)"><span class="order_span">66元/月</span></li>
				<li id="cosli2" class="ul_li2" onClick="show_packages(2)"><span>96元/月</span></li>
				<li id="cosli3" class="ul_li2" onClick="show_packages(3)"><span>126元/月</span></li>
			</div> 
			<div id="page1" class="packages fontcol_ll">
				<li class="order_adli">
					<div class="order_addiv1 button_yuan" id="p1A" onClick="choicPage(this.id,1);">
						&nbsp;
					</div>
					<div class="order_addiv2">
						<p>A套餐：国内语音电话拨打50分钟，超出0.2元/分钟 
						国内流量300MB，超出0.0003元/KB 国内（含可视电话 除港澳台） 接听免费
						</p>
					</div>
				</li>
				<li>
					<div class="order_addiv1 button_yuan" id="p1B" onClick="choicPage(this.id,2);">
						&nbsp;
					</div>
					<div class="order_addiv2">
						<p>B套餐：国内语音电话拨打200分钟，超出0.2元/分钟 国内流量60MB，超出0.0003元/KB 国内（含可视电话 除港澳台）接听免费</p>
					</div>
				</li>
			</div>
			<div id="page2" class="packages fontcol_ll" style="display:none;">
				<li class="order_adli">
					<div class="order_addiv1 button_yuan" id="p2A" onClick="choicPage(this.id,3);">
						&nbsp;
					</div>
					<div class="order_addiv2">
						<p>A套餐：国内语音电话拨打240分钟，超出0.15元/分钟
						国内流量300MB，超出0.0003元/KB国内（含可视电话 除港澳台）接听免费
						</p>
					</div>
				</li>
				<li>
					<div class="order_addiv1 button_yuan" id="p2B" onClick="choicPage(this.id,4);">
						&nbsp;
					</div>
					<div class="order_addiv2">
						<p>B套餐：国内语音电话拨打450分钟，超出0.15元/分钟 国内流量80MB，超出0.0003元/KB 国内（含可视电话 除港澳台）接听免费</p>
					</div>
				</li>
			</div>
			<div id="page3" class="packages fontcol_ll" style="display:none;">
				<li class="order_adli">
					<div class="order_addiv1 button_yuan" id="p3A" onClick="choicPage(this.id,5);">
						&nbsp;
					</div>
					<div class="order_addiv2">
						<p>A套餐：国内语音电话拨打320分钟，超出0.15元/分钟  国内流量400MB，超出0.0003元/KB  国内（含可视电话 除港澳台）接听免费
						</p>
					</div>
				</li>
				<li>
					<div class="order_addiv1 button_yuan" id="p3B" onClick="choicPage(this.id,6);">
						&nbsp;
					</div>
					<div class="order_addiv2">
						<p>B套餐：国内语音电话拨打680分钟，超出0.15元/分钟  国内流量100MB，超出0.0003元/KB  国内（含可视电话 除港澳台）接听免费</p>
					</div>
				</li>
			</div>
		</ul>	
	</div>
	<div class="content2" style='display:none;'>
		<ul class="button_yuan" onClick="choicPage(this.id,7);">
			<li class="font_color packDeLi"><div class="pDLdiv"><span class="font_size1">386元/月</span></div></li>
			<li >
				<div class="clearfix5 content_adjust">
				<p>A套餐：国内语音电话拨打1250分钟，超出0.15元/分钟</p>
				<p>国内流量1.3GB,超出0.0003元/KB</p>			
				<p>国内（含可视电话 除港澳台）接听免费</p>
				</div>
			</li>
		</ul>
	</div>
	<div class="content2" style='display:;'>
		<ul class="button_yuan" onClick="choicPage(this.id,8);">
			<li class="font_color packDeLi"><div class="pDLdiv"><span class="font_size1">586元/月</span></div></li>
			<li >
				<div class="clearfix5 content_adjust">
				<p>A套餐：国内语音电话拨打1950分钟，超出0.15元/分钟</p>
				<p>国内流量2GB,超出0.0003元/KB</p>			
				<p>国内（含可视电话 除港澳台）接听免费</p>
				</div>
			</li>
		</ul>
	</div>
	<div class="content2" style='display:none;'>
		<ul class="button_yuan" onClick="choicPage(this.id,9);">
			<li class="font_color packDeLi"><div class="pDLdiv"><span class="font_size1">286元/月</span></div></li>
			<li >
				<div class="clearfix5 content_adjust">
				<p>A套餐：国内语音电话拨打900分钟，超出0.15元/分钟</p>
				<p>国内流量950MB,超出0.0003元/KB</p>			
				<p>国内（含可视电话 除港澳台）接听免费</p>
				</div>
			</li>
		</ul>
	</div>
	
	<div class="content">
		<div class="footer_button3">
			<a class="c" href="tel:4006152186"><div class="button_yuan tl_button"><div class="phone_img"><div class="fl_l"><img src="images/phone.png" alt="phone" class="cpIMG"></div><span class="fontc_adjust">客服热线</span></div></div></a>
			<div class="button_yuan tr_button" onClick="goto_next();"><span class="fontc_adjust">下一步</span></div>
		</div>
	</div>

	<div class="allBottoms">
			&nbsp;
		</div>
	</div>
	<!-- 所有页面导航 -->
		<div class="footNav">
		<div class="footNav-s">
			<div class="footNav-div1">
				<div class="footNav-div1-d">
					<img src="images/qietu_36.png" class="footNav-div1-img"/>
				</div>
			</div>
			<div class="footNav-div2">
				<div style="overflow:auto;">
				<!-- 左浮动 -->
				<a href="shoujiguan.php?uid=1&domain=itsabutterfly.com&appkey=">
				<div class="footNav-div2-dl">
					<div class="footNav-div2-dld">手机馆</div>
				</div>
				</a>
				<!-- 右浮动 -->
				<a href="javascript:void(0)">
				<div class="footNav-div2-dr">
					<div class="footNav-div2-drd">关注微信</div>
				</div>
				</a>
				<!-- 居中 -->
				<a href="shop.php?uid=1&domain=itsabutterfly.com&appkey=">
				<div class="footNav-div2-dm">
					<div class="footNav-div2-dmd">淘号吧</div>
				</div>
				</a>
				</div>
				<div class="LTDivLine"></div>
				<div class="unicomQQ">
					联通QQ:1031665132
				</div>
			</div>
			</div>
		</div>
<!-- 遮罩层或隐藏层 -->
	<div id="navWX-b" class="navWX-b"></div>
	<!-- 弹出层 -->
	<div id="navWX-w" class="navWX-w">
		<div class="navWX-wD">
			<div class="navWX-wD-d1">
				<img src="images/qietu_25.jpg" class="navWX-wD-d1-img"/>
			</div>
			<div class="navWXAdF">1，您可以扫上面的二维码 </div>
			<div class="navWXAdF">2，您也可以在微信内搜索“浙江联通网上商城”微信公众号，关注浙江联通微信，体验更多互动功能 </div>
		</div>
		<div class="navBtnQ">取消</div>
	</div>
</body>
</html>
<script type="text/javascript" src="js/jquery-1.9.1.min.js" ></script>
<script type="text/javascript" src="js/unicom.js"></script>
<script type="text/javascript">
var g_coupon = 0;//是否使用代金卷
var g_used = 1;//是否有代金卷
var g_flag = 1;//选择的套餐
var g_flaga = 8;//选择的AB套餐
//选择代金卷
function choose_coupon()
{
	var price = 8000;
	if(g_used == 0 && price >= 200)
	{//未使用则变为使用
		g_coupon = 1;
		if(price >= 3000)
		{
			price = price - 200;
		}
		else
		{
			if(price >= 500)
			{
				price = price - 50;
			}
			else
			{
				if(price >= 300)
				{
					price = price - 30;
				}
				else
				{
					price = price - 20;
				}
			}
		}
		$("#price").html(price);
		$("#coupon").html("已使用代金卷");
	}
	else
	{
		//Uconfirm("没有代金卷");
	}
}
//下一步
function goto_next()
{
	if(g_flaga == -1)
	{
		Uconfirm("请选择套餐");
		return false;
	}
	location.href='info2.php?uid=1&pa='+g_flaga+'&coupon='+g_coupon+'&phone_code=<?php echo $phone_code;?>&phone_code2=&type=4&uuid=<?php echo $uuid;?>&mobileId=<?php echo $mobileId;?>&area=<?php echo $area;?>';
}
function choicPage(_id,v){
	var arr = _id;
	g_flaga = v;
	$('.order_addiv1').css("background","");
	$('#'+arr).css("background","url(images/right_03.png) no-repeat center");
}
</script>